﻿using System;
using System.Reflection;
using System.Windows;

namespace SuporeSliplampApp.Util.Extension
{
    public class ResourceHelper
    {
        public static T GetResource<T>(string key)
        {
            if (Application.Current.TryFindResource(key) is T resource)
            {
                return resource;
            }
            return default;
        }
    }
}
